class CreateChannels < ActiveRecord::Migration[5.2]
  def change
    create_table :channels do |t|
      t.string :name
      t.string :avatar
      t.integer :sort, default: 0
      t.integer :parent_id
      t.boolean :published, default: false
      t.integer :level, default: 0
      t.string :share_title
      t.string :share_content
      t.string :share_avatar
      t.string :page_type
      t.string :page_url
      t.string :params

      t.timestamps
    end
  end
end
